package com.pace.ribbon.event;

import org.springframework.context.ApplicationEvent;

/***
 * 下单事件
 */
public class OrderCreateEvent extends ApplicationEvent {
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     */
    public OrderCreateEvent(Object source) {
        super(source);
    }

    private static final long serialVersionUID = 1L;

    private String orderSn;

    public OrderCreateEvent(String orderSn) {
        super(SpringContextHolder.getApplicationContext());
        this.orderSn = orderSn;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }
}
